import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './style'
import './filter'
import {Lazyload} from 'vant'

Vue.config.productionTip = false;
Vue.use(Lazyload, {
    filter: {
        webp(listener, options) {
            if (!options.supportWebp) return;
            const isCDN = /suhoo.oss-cn-shenzhen.aliyuncs.com/;
            if (isCDN.test(listener.src)) {
                listener.src += '?x-oss-process=image/format,webp'
            }
        }
    }
});

new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app');
